# Contributor: Aiden Grossman <agrossman154@yahoo.com>
# Maintainer: Aiden Grossman <agrossman154@yahoo.com>
pkgname=py3-ipykernel
pkgver=6.15.0
pkgrel=0
pkgdesc="IPython kernel for jupyter"
url="https://github.com/ipython/ipykernel"
arch="noarch"
license="BSD-3-Clause"
depends="
	ipython
	py3-jupyter_client
	py3-matplotlib-inline
	py3-nest_asyncio
	py3-packaging
	py3-psutil
	py3-tornado
	py3-traitlets
	python3
	"
makedepends="py3-build py3-installer py3-hatchling"
checkdepends="py3-ipyparallel py3-pytest py3-flaky py3-pytest-timeout"
source="$pkgname-$pkgver.tar.gz::https://github.com/ipython/ipykernel/releases/download/v$pkgver/ipykernel-$pkgver.tar.gz"
builddir="$srcdir/ipykernel-$pkgver"
options="!check" # py3-ipyparallel is circular, and an optional dep

build() {
	python3 -m build --wheel --no-isolation --skip-dependency-check
}

check() {
	pytest
}

package() {
	python3 -m installer --destdir="$pkgdir" dist/*.whl
}

sha512sums="
a6533f094d18d32a02e8de5638fdabb9f647edc9a512e609de3bb1d80f5592acef4e930d879bf79bde7a0ca23945d9eb112d841f2305204fac9f4c672b5315ac  py3-ipykernel-6.15.0.tar.gz
"
